﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;

namespace ExamTests
{
    [TestClass]
    public class ExtensionTest
    {
        [TestMethod]
        public void AsStringTest()
        {
            IEnumerable<Triple> collection = new List<Triple>()
            {
                new Triple(1, 2, 3),
                new Triple(5, 6, 7)
            };
            string expected = "A= 1, B= 2, C= 3\nA= 5, B= 6, C= 7\n";
            string actual = collection.AsString();
            Assert.AreEqual(expected, actual);
        }
    }
}